<!--  -->
<template>
  <div class="banner container">
    <div class="left">
      <img :src="imgSrc" alt="" />
      <h1>{{ goodsTitle }}</h1>
    </div>
    <div class="right" v-show="more">
      <span @click="$router.push(`/goods/info?id=${catalogId}`)">更多 ></span>
    </div>
  </div>
</template>

<script>
export default {
  name: "Mytitle",
  props: ["goodsTitle", "imgSrc", "more", "catalogId"],
  data() {
    return {};
  },
};
</script>
<style lang="less" scoped>
@import "../../assets/css/total.less";
.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 10px 0;
  background-color: #929b9b;
  .left {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    img {
      width: 50px;
      height: 50px;
      margin-left: 20px;
    }
  }
  .right {
    margin-right: 20px;
    cursor: pointer;
    color: rgb(65, 59, 59);
  }
}
</style>
